package com.fox.stock.mapper;

import com.fox.stock.pojo.domain.*;
import com.fox.stock.pojo.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author 20555
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2025-05-18 16:51:05
* @Entity com.fox.stock.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> getInnerMarketInfo(@Param("inner") List<String> inner, @Param("date") Date date);

    List<Map> getStockTradeVol4InnerMarket(@Param("startdate") Date startdate, @Param("enddate") Date enddate, @Param("inner") List<String> inner);

    int insertBatch(@Param("infos") List<StockMarketIndexInfo> list);
}
